<?php

// +----------------------------------------------------------------------
// | 文件 LinksService.class.php
// +----------------------------------------------------------------------
// | 说明 友情链接
// +----------------------------------------------------------------------
// | 
// +----------------------------------------------------------------------
// | Author: 谢赤心 Legend. <xcx_legender@qq.com>
// +----------------------------------------------------------------------

namespace Common\Service;

Class LinksService extends BaseService
{

    protected $_auto = array(
        array('status', 1, self::MODEL_INSERT),
        // array('sort', 0, self::MODEL_INSERT),
        array('status', 'intval', self::MODEL_INSERT, 'function'),
        array('sort', 'intval', self::MODEL_BOTH, 'function'),
    ); 


    public function getTxtLists()
    {
        $map = ['type' => 'txt'];
        return $this->where($map)->order('sort asc')->select();
    }


}